function video(tbl){
	print(tbl)
	var course=dao.fetch("course",Cnd.where("id","=",tbl.cid))
	var chapters=$list("chapter",Cnd.where("tbl_name","=","course").and("tbl_id","=",tbl.cid).and("pid","=",0))
	chapters.forEach(function(c){
		c.put("list",$list("chapter",Cnd.where("pid","=",c.id)))
	})
	attr("chapters",chapters)
	var video=dao.fetch("video",Cnd.where("video_id","=",tbl.id))
	attr("video",video)
	return course;
}
function zb(tbl){
	print(tbl)
	var course=dao.fetch("course",Cnd.where("id","=",tbl.course_id))
	var chapters=$list("chapter",Cnd.where("tbl_name","=","course").and("tbl_id","=",tbl.course_id).and("pid","=",0))
	chapters.forEach(function(c){
		c.put("list",$list("chapter",Cnd.where("pid","=",c.id)))
	})
	attr("chapters",chapters)
	var zb=dao.fetch("zb",Cnd.where("id","=",tbl.id))
	attr("zb",zb)
	return course;
}
function play(tbl){
	var video=dao.fetch("video",Cnd.where("id","=",tbl.id))
	var api=Java.type("com.jse.plug.AliyunApi");
	var map=new NutMap();
	map.put("VideoId",video.VideoId)
	var body=api.exec("GetVideoPlayAuth",map)
	var rtv=foJson(body)
	map.put("CoverURL",video.CoverURL)
	map.put("PlayAuth",rtv.PlayAuth)
	return map;
}